package com.test.webdemo;

import com.test.webdemo.bean.AppConfig;
import com.test.webdemo.bean.FullLifecycleTrackingBean;
import com.test.webdemo.servlet.TrackableViewResolver;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;

public class MainTest {
    public static void main(String[] args) {
        AnnotationConfigWebApplicationContext context =
                new AnnotationConfigWebApplicationContext();
        context.register(AppConfig.class);
        context.refresh();
        // 你的业务代码
        context.close();
    }
}
